package request

import (
	"gitee.com/cjsn/topsdk/ability254/domain"
	"gitee.com/cjsn/topsdk/util"
)

type TmallServicecenterWorkcardVirtualphoneBindRequest struct {
	/*
	   绑定阿里通讯号入参     */
	WorkcardRequest *domain.TmallServicecenterWorkcardVirtualphoneBindWorkcardBaseRequest `json:"workcard_request" required:"true" `
}

func (s *TmallServicecenterWorkcardVirtualphoneBindRequest) SetWorkcardRequest(v domain.TmallServicecenterWorkcardVirtualphoneBindWorkcardBaseRequest) *TmallServicecenterWorkcardVirtualphoneBindRequest {
	s.WorkcardRequest = &v
	return s
}

func (req *TmallServicecenterWorkcardVirtualphoneBindRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.WorkcardRequest != nil {
		paramMap["workcard_request"] = util.ConvertStruct(*req.WorkcardRequest)
	}
	return paramMap
}

func (req *TmallServicecenterWorkcardVirtualphoneBindRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
